<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let i = +0
        let psw
        do{
             psw = prompt("请输入密码")
             i++
             if(psw == "admin"){
                alert("正确")
                break
             }else if(i<3){
                alert("错误")
             }else if(i>=i){
                alert("再见")
             }
        }while(i<3)
        
    </script>
</body>
</html>